package com.allen.study.application.api.assembler.mapper;

import com.allen.study.application.api.request.LeaveApplyApproveRequest;
import com.allen.study.domain.entity.LeaveApplyApprove;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 请假申请表数据传输对象结构映射
 *
 * @author AllenSun
 * @since 2025-04-23 20:46
 */
@Mapper
public interface ILeaveApplyApproveDTOStructMapper {

    /**
     * 请假申请表数据传输对象结构映射实例
     */
    ILeaveApplyApproveDTOStructMapper INSTANCE = Mappers.getMapper(ILeaveApplyApproveDTOStructMapper.class);

    /**
     * 请假申请表创建请求数据传输对象 转 请假申请表实体
     *
     * @param createRequest 请假申请表创建请求数据传输对象
     * @return 请假申请表实体
     */
    LeaveApplyApprove fromCreateRequest(LeaveApplyApproveRequest createRequest);


}
